import { NgModule } from '@angular/core';

import {RouterModule, Routes} from '@angular/router';
import {UserComponent} from './user.component';
import {SharedModule} from '../../shared/shared.module';
import { UserDetailComponent } from './user-detail/user-detail.component';


const routes: Routes = [{
  path: '',
  component: UserComponent
}];
@NgModule({
  imports: [
    RouterModule.forChild(routes),
    SharedModule,
  ],
  exports: [RouterModule],
  entryComponents: [UserDetailComponent],
  declarations: [UserComponent, UserDetailComponent]
})
export class UserModule { }
